package com.lablzh.gdxy.repository;


import com.lablzh.gdxy.entity.Sciachievement;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SciachievementRepository extends JpaRepository<Sciachievement,Integer> {

    void deleteById(int id);

    Sciachievement findById(int id);


    List<Sciachievement> findAllByStuCode(String StudentCode, Sort sort);

    List<Sciachievement> findAllByAudit(String audit,Sort sort);

    List<Sciachievement> findAllByStuCodeAndAudit(String stuCode, String audit,Sort sort);
}
